﻿//using Rsd.Dudu;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Web;

//namespace Rsd.Faith.Core 
//{
//    public static class ExtendMethod
//    {
        
//        private static ErrorCodesContainer ecc = new ErrorCodesContainer(typeof(ErrorCodesType));
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="code"></param>
//        /// <returns></returns>
//        internal static string GetText(this ErrorCodesType code, params String[] args)
//        {
//            return ecc.FormatErrorText<ErrorCodesType>(code, args);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="code"></param>
//        /// <param name="args"></param>
//        internal static void SubmitError(this ErrorCodesType code,params String[] args)
//        {
//            string msg = code.GetText(args);
//            ServicesContainer.GetService<Rsd.Dudu.Exception.IExceptionService>(null).Submit(code.ToString(), (int)code,"操作错误",msg, Rsd.Dudu.Exception.OperationType.CommitAndError);
//        }
//    }
//}